package com.example.lockfulldemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 */
@Slf4j
@RestController
@RequestMapping( "/configuration/property")
@ConfigurationProperties(prefix = "shen.bin.bin")
public class ConfigurationPropertiesController {
    private String a;
    @GetMapping("/query")
    public void query() {
        System.out.println(a);
    }

    public void setA(String a) {
        this.a = a;
    }
}
